package com.ruoyi.control.water.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.water.mapper.JingxiaMapper;
import com.ruoyi.control.water.domain.Jingxia;
import com.ruoyi.control.water.service.IJingxiaService;

/**
 * 水文监测Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-30
 */
@Service
public class JingxiaServiceImpl extends ServiceImpl<JingxiaMapper, Jingxia> implements IJingxiaService //修改
{
    @Autowired
    private JingxiaMapper jingxiaMapper;

    /**
     * 查询水文监测
     *
     * @param AutoID 水文监测主键
     * @return 水文监测
     */
    @Override
    public Jingxia selectJingxiaByAutoID(Long AutoID)
    {
        return jingxiaMapper.selectJingxiaByAutoID(AutoID);
    }

    /**
     * 查询水文监测列表
     *
     * @param jingxia 水文监测
     * @return 水文监测
     */
    @Override
    public List<Jingxia> selectJingxiaList(Jingxia jingxia)
    {
        return jingxiaMapper.selectJingxiaList(jingxia);
    }

    /**
     * 新增水文监测
     *
     * @param jingxia 水文监测
     * @return 结果
     */
    @Override
    public int insertJingxia(Jingxia jingxia)
    {
        return jingxiaMapper.insertJingxia(jingxia);
    }

    /**
     * 修改水文监测
     *
     * @param jingxia 水文监测
     * @return 结果
     */
    @Override
    public int updateJingxia(Jingxia jingxia)
    {
        return jingxiaMapper.updateJingxia(jingxia);
    }

    /**
     * 批量删除水文监测
     *
     * @param AutoIDs 需要删除的水文监测主键
     * @return 结果
     */
    @Override
    public int deleteJingxiaByAutoIDs(Long[] AutoIDs)
    {
        return jingxiaMapper.deleteJingxiaByAutoIDs(AutoIDs);
    }

    /**
     * 删除水文监测信息
     *
     * @param AutoID 水文监测主键
     * @return 结果
     */
    @Override
    public int deleteJingxiaByAutoID(Long AutoID)
    {
        return jingxiaMapper.deleteJingxiaByAutoID(AutoID);
    }

    @Override
    public Jingxia selectLast() {
        return jingxiaMapper.selectLast();
    }

    @Override
    public Jingxia selectJingxiaByCode(String code) {
        return jingxiaMapper.selectJingxiaByCode(code);
    }
}
